package com.tuangou.tuangouorder.order.service.impl;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tuangou.tuangouorder.order.dao.GroupRecordDao;
import com.tuangou.tuangouorder.order.entity.GroupRecordEntity;
import com.tuangou.tuangouorder.order.service.GroupRecordService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("groupRecordService")
public class GroupRecordServiceImpl extends ServiceImpl<GroupRecordDao, GroupRecordEntity> implements GroupRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GroupRecordEntity> page = this.page(
                new Query<GroupRecordEntity>().getPage(params),
                new QueryWrapper<GroupRecordEntity>()
        );

        return new PageUtils(page);
    }

}